package com.macro.mall.tiny.modules.ums.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 小程序用户表
 * </p>
 *
 * @author tyrone
 * @since 2024-10-14
 */
@Getter
@Setter
@TableName("ums_member")
@ApiModel(value = "UmsMember对象", description = "小程序用户表")
public class UmsMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("wx-openid")
    private String openId;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("是否完整注册 0:否 1:是")
    private Integer status;

    @ApiModelProperty("是否vip 0:否 1:是")
    private Integer vip;

    @ApiModelProperty("头像")
    private String icon;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("vip过期时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date vipExpireTime;

    @ApiModelProperty("余额")
    private Integer balance;

    @ApiModelProperty("获取手机code")
    @TableField(exist = false)
    private String code;


}
